<?php
/**
 * Created by PhpStorm.
 * User: THUNDEROBOT
 * Date: 2021/1/13
 * Time: 8:42
 */

namespace app\admin\controller;


use app\admin\model\Question;
use app\admin\model\Exam;
use think\Controller;
use think\Request;


class exams extends Controller
{
    public function index(){
        return $this->fetch();
    }
    public function test(){
        $questionModel = new Question();
        $questionList = $questionModel->question();
//        dump($questionList->toArray());
        $emptyHtml = '<tr><td align="center" colspan="5">暂无任何数据</td></tr>';
        $this->assign("emptyHtml",$emptyHtml);
        $this->assign("questionList",$questionList);
        return $this->fetch();

    }



}